﻿<Window x:Class="SQLWindow.SQLServerCE.SqlWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SQLWindow" Height="300" Width="300">
    <Window.Resources>
        <ResourceDictionary Source="Styles.xaml"/>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="24"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="36"></RowDefinition>
        </Grid.RowDefinitions>
        <ListBox Name="SqlHistory" Grid.Row="0">
            <ListBoxItem>SELECT * FROM Item</ListBoxItem>
        </ListBox>
        <TextBox Name="SqlInput" Grid.Row="1" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding ElementName=SqlHistory, Path=SelectedItem.Content}"></TextBox>
        <TextBlock Name="Status" Grid.Row="2"></TextBlock>
        <DataGrid Name="ResultSet" Grid.Row="3"></DataGrid>
        <StackPanel Grid.Row="4" Orientation="Horizontal">
            <Button Name="ExecButton" Style="{StaticResource ToolButton}" Click="ExecButton_Click">Выполнить</Button>
            <Button Name="ClearButton" Style="{StaticResource ToolButton}" Click="ClearButton_Click">Очистить</Button>
        </StackPanel>
    </Grid>
</Window>
